<!DOCTYPE html>
<html lang="zh">

<head>
  <meta charset="UTF-8" />
  <meta http-equiv="X-UA-Compatible" content="IE=edge" />
  <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no" />
  <meta name="format-detection" content="telephone=no,email=no,address=no" />
  <title>手拉手房产网</title>
  <link rel="stylesheet" href="https://unpkg.com/@wangeditor/editor/dist/css/style.css">

  <style>
    body {
      margin: 0;
      padding: 0;
      background: #f7f7f7;
      color: #333;
      font-family: "Microsoft YaHei", sans-serif;
    }

    .blackPage {
      padding: 20px;
    }

    .loading,
    .error {
      text-align: center;
      color: #999;
      font-size: 16px;
      padding: 50px 20px;
    }

    .ql-align-center {
      text-align: center;
    }

    .ql-font-SimSun {
      font-family: "SimSun";
    }

    .ql-font-SimHei {
      font-family: "SimHei";
    }

    .ql-font-Microsoft-YaHei {
      font-family: "Microsoft YaHei";
    }

    .ql-font-KaiTi {
      font-family: "KaiTi";
    }

    .ql-font-FangSong {
      font-family: "FangSong";
    }

    .ql-font-Arial {
      font-family: "Arial";
    }

    .ql-font-Times-New-Roman {
      font-family: "Times New Roman";
    }

    .ql-font-sans-serif {
      font-family: "sans-serif";
    }

    .ql-size-10px {
      font-size: 10px;
    }

    .ql-size-12px {
      font-size: 12px;
    }

    .ql-size-14px {
      font-size: 14px;
    }

    .ql-size-16px {
      font-size: 16px;
    }

    .ql-size-18px {
      font-size: 18px;
    }

    .ql-size-20px {
      font-size: 20px;
    }

    .ql-size-22px {
      font-size: 22px;
    }

    .ql-size-26px {
      font-size: 26px;
    }

    .ql-size-28px {
      font-size: 28px;
    }

    .ql-size-30px {
      font-size: 30px;
    }
  </style>
</head>

<body>
  <div id="contentBox">
    <div class="loading" id="loading">加载中...</div>
    <div class="error" id="error" style="display:none;"></div>
    <div class="blackPage" id="blackPage" style="display:none;"></div>
  </div>

  <noscript>
    <div style="text-align:center; padding:20px; color:#c00;">
      本页面需要 JavaScript 支持，请启用后刷新页面。
    </div>
  </noscript>

  <script src="https://unpkg.com/axios/dist/axios.min.js"></script>
  <script>
    window.addEventListener('DOMContentLoaded', function () {
      const urlParams = new URLSearchParams(window.location.search);
      const type = urlParams.get('type') || '2';

      const loadingEl = document.getElementById('loading');
      const errorEl = document.getElementById('error');
      const contentEl = document.getElementById('blackPage');

      axios.post('https://house.doufangsls.com/api/aboutlist', {
          type: type
        })
        .then(res => {
          loadingEl.style.display = 'none';
          if (res.data.code === 200 && res.data.data) {
            contentEl.innerHTML = res.data.data.content || '';
            contentEl.style.display = 'block';
          } else {
            errorEl.innerText = '加载失败，请稍后再试';
            errorEl.style.display = 'block';
          }
        })
        .catch(err => {
          loadingEl.style.display = 'none';
          errorEl.innerText = '加载失败，请稍后再试';
          errorEl.style.display = 'block';
          console.error('请求出错：', err);
        });
    });
  </script>
</body>

</html>